<?php

class People_FamilyController extends Base_Controller_Action
{
    
    public function browseAction()
    {
        $family = new Model_Family();
        try {
            $family->read($this->_getParam('fid'));
        }
        catch (Base_Exception $e) {
            return $this->_helper->ErrorPage($e->getMessage());
        }
        
        //question list
        $dbTable = new Table_Person();
        $whereArray['`fid` = ?'] = $family->fid;
        
        $this->view->family      = $family;
        $this->view->entries     = $dbTable->view($whereArray);
        $this->_helper->layout->setLayout('browse');
    }
    
}